---
--类名: AniMoveEvent.lua
--创建日期: 2015-11-23
--创建人: 陈小虎
--功能描述: 动画移动事件
--修改内容：
--修改日期:   
--修改人:     
--修改备注: 
--
local Event = import(".Event")

local AniMoveEvent = class("AniMoveEvent",function()
    return Event.new()
end)

function AniMoveEvent:ctor(params)
	self:setEventName(params.event)

	self.mSx = params.sx
	self.mSy = params.sy
	self.mEx = params.ex
	self.mEy = params.ey
	self.mTime = params.time or 2
	self.mEndDelayTime = params.endDelayTime
	self.mAniDirectory = params.directory
	self.mArmatureName = params.name
	self.mPlayAction = params.action
	self.mScale = params.scale and math.floor(tonumber(params.scale)) / 100 or 1.0
	self.mParticleFile = params.particleFile
	self.mZOrder = params.zOrder or 0
	self.mAniId = params.aId
	self.mImmediately = (params.immediately == 1) and true or false
end

return AniMoveEvent